using Microsoft.AspNetCore.Mvc;
using TMS.Application.Common.Interface;
using TMS.Application.RequestDto;
using TMS.Domain.Entity;

namespace TMS.Api.Controllers
{
    [ApiController]
    public class ViewResultsController : ControllerBase
    {
        private readonly IRepository<Course> _Course;
        private readonly IRepository<Student> _Student;
        private readonly IRepository<ElectiveCourse> _ElectiveCourse;

        public ViewResultsController(IRepository<Course> Course,IRepository<Student> Student,IRepository<ElectiveCourse> ElectiveCourse)
        {
            _Course=Course;
            _Student=Student;
            _ElectiveCourse=ElectiveCourse;
        }

        [HttpGet("/StudentViewResults")]
        public async Task<object> StudentViewResults()
        {   
            //成绩表
            var Course = _Course.Table.ToList();
            //学生表
            var Student = _Student.Table.ToList();
            //科目表
            var ElectiveCours = _ElectiveCourse.Table.ToList();

            return new {
                
            };
        }
    }

}